package com.codi.api.controller.organ;

import com.codi.base.domain.BaseResult;
import com.codi.bus.core.service.BankLimitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("banklimit")
public class BankLimitController {
    @Autowired
    private BankLimitService bankLimitService;

    @GetMapping
    public BaseResult getAll() {
        return BaseResult.success(bankLimitService.selectAllByState());
    }
}
